<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>已删碎言</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="/xlblog/Public/static/bootstrap-3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/xlblog/Public/static/bootstrap-3.3.5/css/bootstrap-theme.min.css">
    <link rel="stylesheet" type="text/css" href="/xlblog/Public/static/font-awesome-4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/xlblog/Public/static/css/bjy.css">
    <link rel="stylesheet" type="text/css" href="/xlblog/Public/Home/css/index.css">
</head>
<body>
<table class="table table-bordered table-striped table-hover table-condensed">
    <thead>
        <tr>
            <th width="5%">chid</th>
            <th width="20%">发表时间</th>
            <th width="60%">内容</th>
            <th width="5%">显示</th>
            <th width="10%">操作</th>
        </tr>
    </thead>
    <?php if(is_array($data)): foreach($data as $key=>$v): ?><tr>
            <td><?php echo ($v['chid']); ?></td>
            <td><?php echo (date('Y-m-d H:i:s',$v['date'])); ?></td>
            <td><?php echo ($v['content']); ?></td>
            <th>
                <?php if($v['is_show'] == 1): ?>✔
                <?php else: ?>
                    ✘<?php endif; ?>
            </th>
            <td>
                <a href="<?php echo U('Admin/Recycle/recover',array('table_name'=>'Chat','id_name'=>'chid','id_number'=>$v['chid']));?>">恢复</a> |
                <a href="javascript:if(confirm('确定要删除吗?')) location='<?php echo U('Admin/Recycle/delete',array('table_name'=>'Chat','id_name'=>'chid','id_number'=>$v['chid']));?>'">彻底删除</a>
            </td>
        </tr><?php endforeach; endif; ?>
</table>
<script src="/xlblog/Public/static/js/jquery-2.0.0.min.js"></script>
<script>
    logoutUrl="<?php echo U('Home/User/logout');?>";
</script>
<script src="/xlblog/Public/static/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="/xlblog/Public/static/js/html5shiv.min.js"></script>
<script src="/xlblog/Public/static/js/respond.min.js"></script>
<![endif]-->
<script src="/xlblog/Public/static/pace/pace.min.js"></script>
<script src="/xlblog/Public/Home/js/index.js"></script>
</body>
</html>